package com.app.service;

import com.app.model.CategoryModel;
import com.app.model.ExposureModel;
import com.app.vo.ExposureVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ExposureService extends IService<ExposureModel> {

    List<ExposureModel> getListByModel(ExposureModel model);

    int getCountByModel(ExposureModel model);

    ExposureVo List(ExposureModel model);


    ExposureModel getContentById(int id);


    ExposureModel add(String title, String content, int sort,  Integer type);

    ExposureModel update(String title, String content, int sort, int id, Integer type);

    void deleteExposureById(int id);

    ExposureModel selectById(int id, int isHeat);

    List<CategoryModel> selectType();
}
